package com.wxy;

import com.wxy.ideaplugin.ui.AiCodeUi;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;

import java.awt.*;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;


//@Slf4j
//@SpringBootApplication
public class Plugin4Application {
    public static void main111(String[] args) {
        SpringApplication.run(Plugin4Application.class, args);
        //AiCodeUi aiCodeUi = new AiCodeUi();
        //aiCodeUi.initUi();

        System.out.println(11111111);
        /*var ctx = new SpringApplicationBuilder(Plugin4Application.class)
                .headless(false).run(args);

        EventQueue.invokeLater(() -> {
            var ex = ctx.getBean(AiCodeUi.class);
            ex.initUi();
        });*/
    }

    private static final Logger log = LoggerFactory.getLogger(Plugin4Application.class);
    public static void main(String[] args) {
        int status = 0;
        if (status == 0) {
            log.info("status:{}", status);
        } else {
            log.info("status:{}", status);
        }
        log.info("end!");
    }

}
